import Vue from 'vue'

export default{
    install:((Vue, opthins) => {
        Vue.prototype.get_screen = function(width){
            if(window.innerWidth){
                width = window.innerWidth
            }else if(document.documentElement.offsetWidth == document.documentElement.clientWidth){
                width = document.documentElement.offsetWidth
            }else{
                width = document.documentElement.clientWidth + getScrollWith()
            }
            return width
        },
        // 获取时间戳
        Vue.prototype.get_time = function(){
            let time = Date.parse(new Date())
            return time
        }
    })    
}